package com.xbh.boot_study.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @TimingTask:
 * @author: ZBoHang
 * @time: 2021/9/30 13:21
 */
@Slf4j
// 注掉component使其失效
// @Component
public class TimingTask {

    @Scheduled(cron = "0-59/5 * * * * ? ")
    public static void aaa() {
        log.info("@@@@@@@@@@@  -->>  aaa方法 定时任务");
    }
}
